package math;

public class Point {
    double x, y, z;

    public Point(double x, double y, double z) {
        this.x = x;
        this.y = y;
        this.z = z;
    }

    public Point() {

    }

    public double getDistance(Point dest) {
        double result = Math
                .sqrt((x - dest.x) * (x - dest.x) + (y - dest.y) * (y - dest.y) + (z - dest.z) * (z - dest.z));
        return result;
    }
}
